const sqlite3 = require('better-sqlite3');

const connection = new sqlite3('./mydatebase.db', (err) => {
    if (err) {
        console.log('链接失败');
        return
    } else {
        console.log('Connected to the database.');
    }
    //创建表格
    connection.run(`CREATE TABLE IF NOT EXISTS users (
        id INTEGER PRIMARY KEY AUTOINCREMENT,
        name TEXT NOT NULL,
        age INT
    )`)
    })
